import 'dart:async';

import 'package:flutter/cupertino.dart';
import 'package:flutter/material.dart';
import 'package:flutter_screenutil/flutter_screenutil.dart';
import 'package:imclient/imclient.dart';
import 'package:imclient/model/conversation.dart';
import 'package:imclient/model/conversation_info.dart';



import 'package:wfc_example/login_screen.dart';
import 'package:wfc_example/main.dart';





class ChatPage extends StatefulWidget {

  const ChatPage({super.key, required this.phoneNum, required this.userId, required this.imToken});
  final String phoneNum;
  final String userId;
  final String imToken;
  @override
  State<ChatPage> createState() => _ChatPageState();
}
class _ChatPageState extends State<ChatPage> {
  @override

  void initState() {
    // TODO: implement initState
    super.initState();

  }

  @override
  Widget build(BuildContext context) {
    final screenSize = MediaQuery.of(context).size;
    return Scaffold(
      body:
      // MyApp(),
      Container(
        height: screenSize.height,
        width: screenSize.width,
        color: Colors.white,
        child: MyApp(phoneNum: widget.phoneNum, userId: widget.userId, imToken: widget.imToken,),
        // ListView(
        //   children: [
        //     Container(child: LoginScreen(),)
        //   ],
        // ),

      ),
    );


  }
}
